//
//  CPFindPasswordVC.m
//  CPApp
//
//  Created by yobet on 2018/3/23.
//  Copyright © 2018年 Class. All rights reserved.
//

#import "CPFindPasswordVC.h"

@interface CPFindPasswordVC ()
@property (weak, nonatomic) IBOutlet UITextField *tellPhone;

@end

@implementation CPFindPasswordVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
}


- (IBAction)findBtn:(UIButton *)sender {
    [AVUser requestPasswordResetForEmailInBackground:self.tellPhone.text block:^(BOOL succeeded, NSError * _Nullable error) {
        if (succeeded) {
            NSLog(@"发送成功");
        }else {
            NSLog(@"发送失败");
        }
         [self.navigationController popViewControllerAnimated:YES];
    }];
}

@end
